:css
  input { position: relative; }
  #need_name_auto {top: 7px; width: 150px; }  
  #need_search { margin-left: 350px; top: 0px;} 
= stylesheet_link_tag "application", "jquery-ui",'icons'
= javascript_include_tag "application" 
.navbar.navbar-fixed-top
  .navbar-inner
    .container-fluid
      %a.btn.btn-navbar{"data-target" => ".nav-collapse", "data-toggle" => "collapse"}
      %a.brand{:href => "/"} iNeed
      = form_tag search_needs_path,:id => 'need_search', :method => 'get' do
        = text_field_tag :need_name_auto, params[:need_name_auto],:class => 'search', :style => "width:340px; height:20px;",:placeholder => 'Search...'
        = hidden_field_tag :need_id
        -if customer_signed_in?
          = hidden_field_tag :current_user, 'customer/'
        -else
          -if supplier_signed_in?
            = hidden_field_tag :current_user, 'supplier/'
          -else
            = hidden_field_tag :current_user, '' 
        %button.btn{:type => 'submit',:name => 'commit',:id => 'srch-btn'}
          %i.icon-search         
%div.span6.offset3
  %table.table.table-condensed
    %tr
      %td
        %h2 Welcome Back! 
        = form_for resource, :as => resource_name, :url => session_path(resource_name),:html => { :class => 'form-horizontal'} do |f|
          -if flash[:alert]
            %div.span6
              .alert.alert-error
                = flash[:alert]
          %div
            = f.label :email
            %br
            = f.email_field :email
            %br
            = f.label :password
            %br
            = f.password_field :password

          - if devise_mapping.rememberable?
            %div
              = f.check_box :remember_me
              = f.label :remember_me
          %button.btn.btn-primary{:type => "submit"} Log in